package com.info.zhiduoduo.common.formbean;

import org.springframework.beans.BeanUtils;

import javax.validation.Valid;

import lombok.Data;

/**
 * Created by TerryJ on 2016/03/14.
 */

@Data
public class  BaseSimpleFormBean<T> extends BasePageInfo {

    //请求数据
    @Valid
    private T reqdata;

    public static BaseSimpleFormBean copy(BaseSimpleFormBean<?> bean) {
        BaseSimpleFormBean newBean = new BaseSimpleFormBean();
        BeanUtils.copyProperties(bean, newBean);
        return newBean;
    }
}
